<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Test</title>
<link href="../jquery.wysiwyg.css" type="text/css" rel="stylesheet"/>
<script src="../help/lib/jquery.js" type="text/javascript"></script>
<script src="jquery.wysiwyg-names-only.js" type="text/javascript"></script>
<script type="text/javascript">
(function ($) {
	$(document).ready(function () {
		$.wysiwyg.init($("#test1"));
		
		$("#test2").wysiwyg();
		
		$("#run1").click(function () {
			console.log($.wysiwyg.instances.length);
		});
	});
})(jQuery);
</script>
</head>
<body>
<textarea id="test1">Some &lt;b>bold&lt;/b> text with &lt;a href="/link/">link&lt;/a></textarea>
<textarea id="test2">Some &lt;b>bold&lt;/b> text with &lt;a href="/link/">link&lt;/a></textarea>

<input type="button" value="Run" id="run1"/>
</body>
</html>